package com.smm.web.vmc.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by zhenghao on 2016/8/26.
 * 仓库对象
 */
@Entity
@Table(name="warehouse")
public class Warehouse implements Serializable {

    private int id;


    private int type;   //仓库类型。 0， 合作仓库  1， 第三方监管仓库。 2，厂库 默认 合作仓库

    private String name;

    private String address;

    private String contacts;    //联系人

    private String contactsPhone;   //联系人电话

    private double lng;       //经度

    private double lat;      //维度

    private String summary; //简介

    private String details;     //详情

    private String imageUrlForList; //仓库列表页图片

    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactsPhone() {
        return contactsPhone;
    }

    public void setContactsPhone(String contactsPhone) {
        this.contactsPhone = contactsPhone;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getImageUrlForList() {
        return imageUrlForList;
    }

    public void setImageUrlForList(String imageUrlForList) {
        this.imageUrlForList = imageUrlForList;
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
